#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Signpost.generated.h"

// 路径点类

UCLASS()
class TAFANG2_API ASignpost : public AActor
{
	GENERATED_BODY()

	UPROPERTY(VisibleAnywhere, meta=(AllowPrivateAccess=true))
	class UBoxComponent* BoxComponent;
	
	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	ASignpost* NextPoint;

	
public:	
	ASignpost();
	virtual void BeginPlay() override;
	virtual void Tick(float DeltaTime) override;

	UFUNCTION()
	void OnComponentOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
	
};
